<%-- 
    Document   : verTodas
    Created on : Feb 23, 2012, 5:56:11 PM
    Author     : andreth
--%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<logic:present name="listas">
    <logic:present name="Lista" property="mensaje">
        <div>
        <b><font color="red">
         <bean:write name="Lista" property="mensaje"/>
         </font>
        </b>
        </div>
    </logic:present>
    <logic:present name="Lista" property="mensajeOK">
        <div>
        <b><font color="green">
        <bean:write name="Lista" property="mensajeOK"/>
        </font>
        </b>
        </div>
    </logic:present>
    
      <div id="paginador"></div> <p>Muestra hasta 4 resultados </p>
      <table id="tablaDatos" border="0" cellpadding="0" cellspacing="0" width="100%" class="scrollTable">
          
      <logic:iterate name="listas" id="lista">
          <tr>
              <td>
        <table id="tablaDatos1" border="0" cellpadding="0" cellspacing="0" width="100%" class="scrollTable">
            <thead class="fixedHeader" id="fixedHeader">
            <th> Nombre Lista </th>
            <th> Valores</th>
            <th> Eliminar</th>
            </thead>
            <tbody class="scrollContent">
                <tr>
                    <td> <bean:write name="lista" property="nombre"></bean:write>
                    </td>
                    <td>
            <table> 
                    <logic:iterate name="lista" property="valores" id="valor"> 
                        <tr>
                            <td>
                                <ul><bean:write name="valor" property="valor"></bean:write></ul>
                            </td>
                        </tr>
                    </logic:iterate>
            </table>  
                    </td>
                    <td>
                        <div class="buttons">
                        <html:form action="/eliminarLista" onsubmit=" return this ">
                                <html:hidden name="lista" property="idLista"/>
                                <html:hidden name="lista" property="nombre"/>
                        <button type="submit" class="negative">
                            <img src="interfaz/images/eliminar.png" alt=""/>
                            <bean:message key="boton.eliminar" />
                        </html:form>
                        </button>
                        </div>
                    </td>
                </tr>
             </tbody>
        </table>
              </td>
          </tr>
     
                                
    </logic:iterate>
   
          </table>
               
      <br>
</logic:present>
<script type="text/javascript">

var p = new Paginador(
    document.getElementById('paginador'),
    document.getElementById('tablaDatos'),
    4
);

p.Mostrar();
</script>
